package date;

import java.sql.Date;
import java.util.Calendar;

public class Demo1 {

	public static void main(String[] args) {
		Calendar c=Calendar.getInstance();
		Calendar c1=Calendar.getInstance();
		c.set(2016,10,9);
		System.out.println(c1.getTimeInMillis()-c.getTimeInMillis());
		int y=c.get(Calendar.YEAR);
		int m=c.get(Calendar.MONTH)+1;
		int d=c.get(Calendar.DAY_OF_MONTH);
		int h=c.get(Calendar.HOUR_OF_DAY);
		int mi=c.get(Calendar.MINUTE);
		int s=c.get(Calendar.SECOND);
		System.out.println(y+"年"+m+"月"+d+"日"+" "+h+":"+mi+":"+s);
		

	}

}
